<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<html>
<head>
    <base href="${pageContext.request.contextPath}/">
    <title>Title</title>
    <script src="https://www.itxst.com/package/jquery-3.5.1/jquery.min.js"></script>
    <script src="https://www.itxst.com/package/bootstrap-4.5.0/js/bootstrap.min.js"></script>
    <link href="https://www.itxst.com/package/bootstrap-4.5.0/css/bootstrap.css" rel="stylesheet">
    <script src="https://www.itxst.com/package/bootstrap-datepicker-1.9.0/js/bootstrap-datepicker.min.js"></script>
    <script src="https://www.itxst.com/package/bootstrap-datepicker-1.9.0/locales/bootstrap-datepicker.zh-CN.min.js"></script>
    <link href="https://www.itxst.com/package/bootstrap-datepicker-1.9.0/css/bootstrap-datepicker.min.css" rel="stylesheet">
    <script type="text/javascript">
        $(function(){
            $("#myDate").datepicker({
                language:'zh-CN', //设置语言
                autoclose:true, //自动关闭
                format:'yyyy-mm-dd', //日期格式
                minView:'month', //可选择的最小视图
                initialDate:new Date() //初始化显示日期
            });

        });
    </script>
</head>

<body>
    <input type="text" id="myDate">
</body>
</html>
